package com.piggy.auth.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel("用户重置密码")
@Data
public class OAuthResetPwd {

    /**
     * 用户名
     */
    @ApiModelProperty("手机号")
    private String phone;

    /**
     * 验证码
     */
    @ApiModelProperty("验证码")
    @NotNull(message = "{user.code.not.blank}")
    private String code;

    /**
     * 用户密码
     */
    @ApiModelProperty("密码")
    private String password;

}
